<?php
$this->menu=array(
    array('label'=>'Create Packing list', 'url'=>array('create')),
);
?>

<h2>Packing List</h2>

<div class="row">
	<?php echo CHtml::label("Search",'search'); ?>
	<?php echo CHtml::textField('search',''); ?>
	<?php echo CHtml::link('Search','#',array('grid_id'=>'export_info_grid','id'=>'search')); ?>
</div>

<?php
    $this->widget('zii.widgets.grid.CGridView', array(
        'id' => 'export_info_grid',
        'dataProvider' => $model->search(),
        'columns' => array(
            'ref:text:Reference',
            'date:date:Export date',
            'handlingAgent.cname:text:Shipping line',
            'pod:text:Port discharged',
            array(
                'class' => 'CButtonColumn',
            ),
        ),
    ));
?>